package cn.wolfcode.luowowo.comment.repository;

import cn.wolfcode.luowowo.comment.domain.AnswerComment;
import org.springframework.core.annotation.Order;
import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AnswerCommentMongoRepository extends MongoRepository<AnswerComment ,String>{
    List<AnswerComment> findAllByqId(String qId ,Sort sort);

    List<AnswerComment> findAllByUserId(Long userId);

    List<AnswerComment> findByUserId(Long id);

}
